package com.ourchem.bus.enums;

public enum OpEnums {

    ORG_TYPE_ONE("高校","0"),
    ORG_TYPE_TWO("科研院所","1"),
    ORG_TYPE_THREE("国企","2"),

    //佛山
    INDUSTRY_FS_ONE("高端装备制造","1"),
    INDUSTRY_FS_TWO("前沿新材料","2"),
    INDUSTRY_FS_THREE("安全应急与环保","3"),
    //江门
    INDUSTRY_FS_FOUR("智能机器人","2"),
    INDUSTRY_FS_FIVE("现代轻工纺织","3"),
    //河源
    INDUSTRY_FS_SIX("新一代电子信息","1"),
    INDUSTRY_FS_SEVEN("先进材料","2"),
    INDUSTRY_FS_EIGHT("精密仪器","3"),
    //阳江
    INDUSTRY_FS_NIGHT("五金刀剪产业","3"),
    INDUSTRY_FS_TEN("新能源","4"),
    //肇庆
    INDUSTRY_FS_ELEVEN("汽车及汽车零部件","1"),
    INDUSTRY_FS_TWELVE("电子信息","2"),
    INDUSTRY_FS_THIRTEEN("生物医药","3"),
    INDUSTRY_FS_FOURTEEN("现代农业与食品","4"),
    //茂名
    INDUSTRY_FS_FIFTEEN("绿色石化","1"),
    //梅州
    INDUSTRY_FS_SIXTEEN("南药产业","1"),
    //开发区
    INDUSTRY_FS_SEVENTEEN("新一代信息技术产业","1"),
    INDUSTRY_FS_EIGHTEEN("新能源汽车产业","2"),
    INDUSTRY_FS_NINETEEN("生物医药产业","3"),
    INDUSTRY_FS_TWENTY("战略性产业集群","4"),


    PATENT_TYPE_ONE("发明申请","0"),
    PATENT_TYPE_TWO("发明授权","0"),
    PATENT_TYPE_THREE("实用新型","1"),
    PATENT_TYPE_FOUR("外观设计","2"),
    PATENT_TYPE_FIVE("其他","3");

    private final String filed;
    private final String value;

    private OpEnums(String filed,String value) {
        this.value = value;
        this.filed = filed;
    }

    public String getValue() {
        return value;
    }

    public String getFiled() {
        return filed;
    }

    public static OpEnums filedOf(String filed) {
        for (OpEnums value : values()) {
            if (filed.equals(value.filed))
                return value;
        }
        throw new RuntimeException("没有找到对应的枚举");
    }
}
